﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace HttpServer.Models
{
    [Serializable]
    public class User
    {
        private int id;
        private string name;
        private int age;


        [Required]
        public int Id
        {
            get { return id; }
            set { id = value; }
        }


        [Required]
        public string Name
        {
            get { return name; }
            set { name = value; }
        }


        [Required]
        public int Age
        {
            get { return age; }
            set { age = value; }
        }
    }



}
